package com.pet.user.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.pet.api.dto.UserReviewInfoDTO;
import com.pet.common.domain.PageDTO;
import com.pet.common.domain.Result;
import com.pet.user.domain.dto.LoginFormDTO;
import com.pet.user.domain.dto.RegisterFormDTO;
import com.pet.user.domain.dto.UserInfoFormDTO;
import com.pet.user.domain.po.User;
import com.pet.user.domain.query.UserQuery;
import com.pet.user.domain.vo.UserDetailVO;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 用户表 服务类
 * </p>
 *
 * @author Cookies
 * @since 2024-06-27
 */
public interface IUserService extends IService<User> {

    Result login(LoginFormDTO loginFormDTO);

    Result loginByAdmin(LoginFormDTO loginFormDTO);

    Result register(RegisterFormDTO registerFormDTO);

    PageDTO<UserDetailVO> getUsersList(UserQuery userQuery);

    Result getInfoByUser();

    Result updateInfoByUser(UserInfoFormDTO userInfoFormDTO);

    void addPointsByPay(Integer totalFee);

    Map<Integer, String> getIdNicknameMap(List<Integer> userIds);

    Map<Integer, UserReviewInfoDTO> queryUserReviewInfo(List<Integer> userIds);
}
